Ext.define('TS.view.bible.book.Form', {
    extend: 'TS.lib.Form',
    alias : 'widget.bookform',
    title : 'Księga',
	url:URL.bible.form.book,
	items:[
		{xtype:'hidden',name:'book_id'},
		{xtype:'text',fieldLabel:'Nazwa',name:'book_workname'},
		{xtype:'combo',fieldLabel:'Testament',name:'testament_id',store:Dict.testament}
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			Dict.book.load();
			Util.store('Book').load();
		}
	},{
		text:'Nowy',
		handler:Util.f.clear
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.bible.del.book
		}
	}]
});